package net.csdra.DongPoShuZiTuShuGuan.service;

import net.csdra.DongPoShuZiTuShuGuan.domain.Video;
import org.springframework.data.domain.Page;

/**
 * Created by add on 2018/1/16.
 */
public interface VideoService {
    //没有轮播的情况
    Video getVideo();
    //有轮播的情况
    Page<Video> getVideoByState(GetVideoByState getVideoByState);

    Video getPlayVideo();

    class GetVideoByState extends PageEntity{
        boolean enable;

        public boolean isEnable() {
            return enable;
        }
        public boolean getEnable() {
            return enable;
        }

        public void setEnable(boolean enable) {
            this.enable = enable;
        }
    }
}
